import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './assets/css/global.css'
import './assets/iconfont/iconfont.css'
import './assets/iconfont01/iconfont.css'
import 'normalize.css/normalize.css'
import '@/assets/styles/common.css'
import '@/assets/styles/index.scss'// custome global css
import UmyUi from 'umy-ui'
import 'umy-ui/lib/theme-chalk/index.css'
import { myStorage } from "@/utils/localStorage/index";
// import api from './api'
// import * as echarts from 'echarts'
import echarts from 'echarts/lib/echarts.js';
import 'echarts/map/js/china.js'

import { initMqtt, myMqtt } from '@/mqtt'
import Mixin from './mixins'
import ECharts from 'vue-echarts'
import 'echarts/lib/chart/bar'
import 'echarts/lib/component/tooltip'

import datav from '@jiaminghi/data-view'
Vue.use(datav)
//import 'echarts-liquidfill'
// import 'echarts-gl'
Vue.use(ElementUI)
Vue.use(UmyUi)
Vue.component('v-chart', ECharts)
// 导入topology-vue组件
// import Topology from 'topology-vue'
// import 'topology-vue/topology-vue.css';
// Vue.use(Topology);
Vue.mixin(Mixin)
Vue.config.productionTip = false
// Vue.prototype.$api = api
Vue.prototype.$echarts = echarts
// console.log(process.env.VUE_APP_BASE_URL)
import Avue from '@smallwei/avue';
import '@smallwei/avue/lib/index.css';
Vue.use(Avue);
//打印功能插件
import Print from '@/utils/print/print'
Vue.use(Print)

// 按钮权限的指令
import has from '@/components/Permission/index'
Vue.use(has);
initMqtt();


new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
